/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package verins.DAO;

import java.util.List;
import javax.persistence.*;
import javax.swing.JOptionPane;


/**
 *
 * @author Hector O
 */
public class EstadoProcesoEmpadronamientoDAO {    
    
    public List findAll(){
        List lista=null;
        try{
            
            EntityManagerFactory emf = Persistence.createEntityManagerFactory("verinsPU");
            EntityManager em = emf.createEntityManager();
            Query query=em.createNamedQuery("Estadoprocesoempadronamiento.findAll");
            
            lista=query.getResultList();
            
            em.close();    
            emf.close();
            
            return lista;
            
        }catch(Exception ex){
              // JOptionPane.showConfirmDialog(null, "error!: "+ex.getMessage());
        }
        return lista;
    }

}
